package cn.apthink.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author David唐
 * @since 2024-01-25
 */
@Getter
@Setter
@ToString
@TableName("userrole")
@ApiModel(value = "UserroleEntity对象", description = "")
public class UserRoleEntity {

	@ApiModelProperty(value = "字段id", name = "id")
	@TableId(value = "id", type = IdType.ASSIGN_UUID)
	private String id;

	@ApiModelProperty(value = "字段userid", name = "userid")
	@TableField("userid")
	private String userid;

	@ApiModelProperty(value = "字段roleid", name = "roleid")
	@TableField("roleid")
	private String roleid;

	@ApiModelProperty(value = "字段createtime", name = "createtime")
	@TableField(value = "createtime", fill = FieldFill.INSERT)
	private String createtime;
}
